import request from '@/utils/request'
export default {



    getGmtDeparture(gmtDeparture,id) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/getGmtDeparture/${gmtDeparture}/${id}`,
            //url: `/hr/profiles/getGmtDeparture/${gmtDeparture}/${id}`,
            method: 'get'
        })
    },



  
    getCountPor() {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/getCountPor`,
           // url: `/hr/profiles/getCountPor`,
            method: 'get'
        })
    },



    getProId(id) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/getProId/${id}`,
           // url: `/hr/profiles/getProId/${id}`,
            method: 'get'
        })
    },
    getProlist() {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/selectProAll`,
            //url: `/hr/profiles/selectProAll`,
            method: 'get'
        });
    },
    getHrInfo(id) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/getHrInfo/${id}`,
            //url: `/hr/profiles/getHrInfo/${id}`,
            method: 'post'
        });
    },


    updateHr(profiles) {
        return request({
           url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/updateHr`,
            // url: `/hr/profiles/updateHr`,
            method: 'post',
            data: profiles
        });
    },
    getByid(id) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/getByid/${id}`,
            //url: `/hr/profiles/getByid/${id}`,
            method: 'get'
        });
    },
    //在职
    condition(page, limit, ProRessultVoQuery) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/condition/${page}/${limit}`,
            // url: `/hr/profiles/condition/${page}/${limit}`,
            method: 'post',

            data: ProRessultVoQuery
        });
    },

    getProListPage(page, limit, ProRessultVoQuery) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/condition/${page}/${limit}`,
             //url: `/hr/profiles/condition/${page}/${limit}`,
            method: 'post',

            data: ProRessultVoQuery
        });
    },



    //当月入职人数
    countFalse() {
        return request({
           url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/countFalse/`,
            // url: `/hr/profiles/countFalse/`,
            method: 'get'
        });
    },
    //在职总人数
    countFalsePro() {
        return request({
           url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/countFalse/`,
            // url: `/hr/profiles/countFalse/`,
            method: 'get'
        });
    },

    //离职总人数
    countProSum() {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/countFalse/`,
           // url: `/hr/profiles/countFalse/`,
            method: 'get'
        });
    },
    //当月离职人数
    countPro() {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/countPro/`,
            //url: `/hr/profiles/countPro/`,
            method: 'get'
        });
    },
    //离职
    conditionPro(page, limit, ProRessultVoQuery) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/conditionPro/${page}/${limit}`,
            //url: `/hr/profiles/conditionPro/${page}/${limit}`,
            method: 'post',

            data: ProRessultVoQuery
        });
    },

    getProListPage1(page, limit, ProRessultVoQuery) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/conditionPro/${page}/${limit}`,
            //url: `/hr/profiles/conditionPro/${page}/${limit}`,
            method: 'post',
            data: ProRessultVoQuery
        });
    },





    addHr(hr) {
        return request({
            url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/addHr`,
            //url: `/hr/profiles/addHr`,
            method: 'post',
            data: hr
        });
    },
    // removeById
    removeById(id) {
        return request({
             url: `/service-hr-0.0.1-SNAPSHOT/hr/profiles/removeById/${id}`,
            //url: `/hr/profiles/removeById/${id}`,
            method: 'delete'
        });
    },



}
